frontend-dev-parallel-test-results.html

Report generated on 14-Feb-2024 at 10:18:39 by pytest-html v3.1.1

Summary

7 tests ran in 106.85 seconds.

0 passed, 1 skipped, 7 failed, 0 errors, 0 expected failures, 0 unexpected passes, 0 rerun

Results

Result Test Duration Links
Failed tests/frontend/test_install.py::test_install_uninstall_extension_tc_id_c393003[Desktop] 17.29
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="43f7425c-3213-409d-b2b1-72e8d946b882")>, base_url = 'https://addons-dev.allizom.org'
firefox = <foxpuppet.foxpuppet.FoxPuppet object at 0x108fcaf10>, firefox_notifications = <function notifications at 0x107218680>
wait = <[AttributeError("'function' object has no attribute 'session_id'") raised in repr()] WebDriverWait object at 0x108fd86d0>

def test_install_uninstall_extension_tc_id_c393003(
selenium, base_url, firefox, firefox_notifications, wait
):
"""Open an extension detail page, install it and then uninstall it"""
selenium.get(f"{base_url}/addon/aarafow-molla-mantinch/")
addon = Detail(selenium, base_url).wait_for_page_to_load()
amo_addon_name = addon.name
assert amo_addon_name == "aarafow-molla-mantinch"
assert addon.is_compatible
addon.install()
> firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallConfirmation
).install()

tests/frontend/test_install.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv/lib/python3.11/site-packages/foxpuppet/windows/browser/window.py:84: in wait_for_notification
self.wait.until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.webdriver.support.wait.WebDriverWait (session="43f7425c-3213-409d-b2b1-72e8d946b882")>, method = <function BrowserWindow.wait_for_notification.<locals>.<lambda> at 0x108fc1440>
message = 'AddOnInstallConfirmation was not shown.'

def until(self, method, message: str = ""):
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.

:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None

end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: AddOnInstallConfirmation was not shown.

venv/lib/python3.11/site-packages/selenium/webdriver/support/wait.py:90: TimeoutException
Failed tests/frontend/test_install.py::test_enable_disable_extension[Desktop] 15.76
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="20600330-fc3a-4225-a786-0af682d1e77a")>, base_url = 'https://addons-dev.allizom.org'
firefox = <foxpuppet.foxpuppet.FoxPuppet object at 0x108fb6910>, firefox_notifications = <function notifications at 0x107218680>
wait = <[AttributeError("'function' object has no attribute 'session_id'") raised in repr()] WebDriverWait object at 0x108faf650>

def test_enable_disable_extension(
selenium, base_url, firefox, firefox_notifications, wait
):
"""Open an extension detail page, install it, disable it from about:addons then enable it back in AMO"""
selenium.get(f"{base_url}/addon/aarafow-molla-mantinch/")
addon = Detail(selenium, base_url).wait_for_page_to_load()
addon.install()
> firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallConfirmation
).install()

tests/frontend/test_install.py:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv/lib/python3.11/site-packages/foxpuppet/windows/browser/window.py:84: in wait_for_notification
self.wait.until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.webdriver.support.wait.WebDriverWait (session="20600330-fc3a-4225-a786-0af682d1e77a")>, method = <function BrowserWindow.wait_for_notification.<locals>.<lambda> at 0x1094a0220>
message = 'AddOnInstallConfirmation was not shown.'

def until(self, method, message: str = ""):
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.

:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None

end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: AddOnInstallConfirmation was not shown.

venv/lib/python3.11/site-packages/selenium/webdriver/support/wait.py:90: TimeoutException
Failed tests/frontend/test_install.py::test_install_uninstall_theme_tc_id_C95591[Desktop] 16.65
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="25f7f061-c818-4dd2-9c57-4abec76cc2a9")>, base_url = 'https://addons-dev.allizom.org'
firefox = <foxpuppet.foxpuppet.FoxPuppet object at 0x1094cfa10>, firefox_notifications = <function notifications at 0x107218680>
wait = <[AttributeError("'function' object has no attribute 'session_id'") raised in repr()] WebDriverWait object at 0x10943a5d0>

def test_install_uninstall_theme_tc_id_C95591(
selenium, base_url, firefox, firefox_notifications, wait
):
"""Open a theme detail page, install it and then uninstall it"""
selenium.get(f"{base_url}/addon/japanese-tattoo/")
addon = Detail(selenium, base_url).wait_for_page_to_load()
amo_theme_name = addon.name
assert amo_theme_name == "Japanese Tattoo"
assert addon.is_compatible
addon.install()
> firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallConfirmation
).install()

tests/frontend/test_install.py:97:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv/lib/python3.11/site-packages/foxpuppet/windows/browser/window.py:84: in wait_for_notification
self.wait.until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.webdriver.support.wait.WebDriverWait (session="25f7f061-c818-4dd2-9c57-4abec76cc2a9")>, method = <function BrowserWindow.wait_for_notification.<locals>.<lambda> at 0x1094a0900>
message = 'AddOnInstallConfirmation was not shown.'

def until(self, method, message: str = ""):
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.

:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None

end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: AddOnInstallConfirmation was not shown.

venv/lib/python3.11/site-packages/selenium/webdriver/support/wait.py:90: TimeoutException
Failed tests/frontend/test_install.py::test_install_uninstall_dictionary_tc_id_c4508[Desktop] 7.14
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="acd34aa5-1861-468a-b1f0-08ded18030c0")>, base_url = 'https://addons-dev.allizom.org'
firefox = <foxpuppet.foxpuppet.FoxPuppet object at 0x10961ac50>, firefox_notifications = <function notifications at 0x107218680>
wait = <[AttributeError("'function' object has no attribute 'session_id'") raised in repr()] WebDriverWait object at 0x10961ab50>

def test_install_uninstall_dictionary_tc_id_c4508(
selenium, base_url, firefox, firefox_notifications, wait
):
"""Open a dictionary detail page, install it and then uninstall it"""
selenium.get(f"{base_url}/addon/release_dictionary/")
addon = Detail(selenium, base_url).wait_for_page_to_load()
amo_dict_name = addon.name
assert amo_dict_name == "release dictionary"
assert addon.is_compatible
addon.install()
firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallConfirmation
).install()
firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallComplete
).close()
# check that the install button state changed to "Remove"
> assert "Remove" in addon.button_text
E AssertionError: assert 'Remove' in 'Elimină'
E + where 'Elimină' = <pages.desktop.frontend.details.Detail object at 0x10961b890>.button_text

tests/frontend/test_install.py:139: AssertionError
Failed tests/frontend/test_install.py::test_install_uninstall_langpack_tc_id_c4508[Desktop] 16.47
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="95065678-d9de-4598-9ec1-b9b2afd52c1c")>, base_url = 'https://addons-dev.allizom.org'
firefox = <foxpuppet.foxpuppet.FoxPuppet object at 0x109655ed0>, firefox_notifications = <function notifications at 0x107218680>
wait = <[AttributeError("'function' object has no attribute 'session_id'") raised in repr()] WebDriverWait object at 0x1094d2f50>

def test_install_uninstall_langpack_tc_id_c4508(
selenium, base_url, firefox, firefox_notifications, wait
):
"""Open a language pack detail page, install it and then uninstall it"""
selenium.get(f"{base_url}/addon/release-langpack/")
addon = Detail(selenium, base_url).wait_for_page_to_load()
amo_langpack_name = addon.name
assert amo_langpack_name == "Release lang pack"
assert addon.is_compatible
addon.install()
> firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallConfirmation
).install()

tests/frontend/test_install.py:168:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv/lib/python3.11/site-packages/foxpuppet/windows/browser/window.py:84: in wait_for_notification
self.wait.until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.webdriver.support.wait.WebDriverWait (session="95065678-d9de-4598-9ec1-b9b2afd52c1c")>, method = <function BrowserWindow.wait_for_notification.<locals>.<lambda> at 0x1094a27a0>
message = 'AddOnInstallConfirmation was not shown.'

def until(self, method, message: str = ""):
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.

:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None

end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: AddOnInstallConfirmation was not shown.

venv/lib/python3.11/site-packages/selenium/webdriver/support/wait.py:90: TimeoutException
Failed tests/frontend/test_install.py::test_about_addons_install_extension[Desktop] 15.62
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="e6d82dca-35f5-40a5-9b24-948ddf2b81f1")>, base_url = 'https://addons-dev.allizom.org'
wait = <[AttributeError("'function' object has no attribute 'session_id'") raised in repr()] WebDriverWait object at 0x1096abed0>, firefox = <foxpuppet.foxpuppet.FoxPuppet object at 0x1096b8f10>
firefox_notifications = <function notifications at 0x107218680>

def test_about_addons_install_extension(
selenium, base_url, wait, firefox, firefox_notifications
):
selenium.get("about:addons")
about_addons = AboutAddons(selenium)
# waiting for the addon cards data to be retrieved (the install buttons in this case)
wait.until(
lambda _: len([el.install_button for el in about_addons.addon_cards_items]) >= 8
)
disco_addon_name = about_addons.addon_cards_items[1].disco_addon_name.text
disco_addon_author = about_addons.addon_cards_items[1].disco_addon_author.text
# install the recommended extension
about_addons.addon_cards_items[1].install_button.click()
> firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallConfirmation
).install()

tests/frontend/test_install.py:209:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv/lib/python3.11/site-packages/foxpuppet/windows/browser/window.py:84: in wait_for_notification
self.wait.until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.webdriver.support.wait.WebDriverWait (session="e6d82dca-35f5-40a5-9b24-948ddf2b81f1")>, method = <function BrowserWindow.wait_for_notification.<locals>.<lambda> at 0x1094a39c0>
message = 'AddOnInstallConfirmation was not shown.'

def until(self, method, message: str = ""):
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.

:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None

end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: AddOnInstallConfirmation was not shown.

venv/lib/python3.11/site-packages/selenium/webdriver/support/wait.py:90: TimeoutException
Failed tests/frontend/test_install.py::test_about_addons_install_theme[Desktop] 16.22
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="6c7cf4bc-7a65-48aa-afa4-e3217a575cb6")>, base_url = 'https://addons-dev.allizom.org'
wait = <[AttributeError("'function' object has no attribute 'session_id'") raised in repr()] WebDriverWait object at 0x1096cd950>, firefox = <foxpuppet.foxpuppet.FoxPuppet object at 0x109741090>
firefox_notifications = <function notifications at 0x107218680>

def test_about_addons_install_theme(
selenium, base_url, wait, firefox, firefox_notifications
):
selenium.get("about:addons")
about_addons = AboutAddons(selenium)
# waiting for the addon cards data to be retrieved (the install buttons in this case)
wait.until(
lambda _: len([el.install_button for el in about_addons.addon_cards_items]) >= 8
)
disco_theme_name = about_addons.addon_cards_items[0].disco_addon_name.text
# make a note of the image source of the theme we are about to install
disco_theme_image = about_addons.addon_cards_items[0].theme_image.get_attribute(
"src"
)
# install the recommended theme
about_addons.addon_cards_items[0].install_button.click()
> firefox.browser.wait_for_notification(
firefox_notifications.AddOnInstallConfirmation
).install()

tests/frontend/test_install.py:247:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
venv/lib/python3.11/site-packages/foxpuppet/windows/browser/window.py:84: in wait_for_notification
self.wait.until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.webdriver.support.wait.WebDriverWait (session="6c7cf4bc-7a65-48aa-afa4-e3217a575cb6")>, method = <function BrowserWindow.wait_for_notification.<locals>.<lambda> at 0x1096a0360>
message = 'AddOnInstallConfirmation was not shown.'

def until(self, method, message: str = ""):
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.

:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None

end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: AddOnInstallConfirmation was not shown.

venv/lib/python3.11/site-packages/selenium/webdriver/support/wait.py:90: TimeoutException
Skipped tests/frontend/test_install.py::test_about_addons_extension_updates[Desktop] 0.00
('/Users/alexandru.schek/addons-release-tests/tests/frontend/test_install.py', 256, 'Skipped: unconditional skip')